import { MenuItem } from "@/scripts/dataTypes";
import { defineAsyncComponent, ref, shallowRef } from "vue";
import freeDrawing from '@/pages/modelser2View/FreeDrawing.vue';
import circleDrawing from '@/pages/modelser2View/CircleDrawing.vue';
import lineDrawing from '@/pages/modelser2View/LineDrawing.vue';
import overheadLinesDrawing from '@/pages/modelser2View/OverheadLinesDrawing.vue';
import recordlist from '@/pages/modelser2View/Recordlist.vue';
import monomerView from '@/pages/modelser2View/MonomerView.vue';
import monomerEdit from '@/pages/modelser2View/MonomerEdit.vue';

export const modelser2MenuList = ref<MenuItem[]>([
    {
        id: "freeDrawing",
        name: "自由绘制",
        com: shallowRef(freeDrawing),
        status: "none",
        icon: require('@/assets/modelser/free.png'),
        activeIcon: require('@/assets/modelser/free_actived.png'),
        hoverIcon: require('@/assets/modelser/free_hover.png'),
        isOnly: true,
    },
    {
        id: "circleDrawing",
        name: "柱状裁剪",
        com: shallowRef(circleDrawing),
        status: "none",
        icon: require('@/assets/modelser/circle.png'),
        activeIcon: require('@/assets/modelser/circle_actived.png'),
        hoverIcon: require('@/assets/modelser/circle_hover.png'),
        isOnly: true,
    },
    {
        id: "lineDrawing",
        name: "墙形裁剪",
        com: shallowRef(lineDrawing),
        status: "none",
        icon: require('@/assets/modelser/line.png'),
        activeIcon: require('@/assets/modelser/line_actived.png'),
        hoverIcon: require('@/assets/modelser/line_hover.png'),
        isOnly: true,
    },
    {
        id: "overheadLinesDrawing",
        name: "接触网裁剪",
        com: shallowRef(overheadLinesDrawing),
        status: "none",
        icon: require('@/assets/modelser/over.png'),
        activeIcon: require('@/assets/modelser/over_actived.png'),
        hoverIcon: require('@/assets/modelser/over_hover.png'),
        isOnly: true,
    },
    {
        id: "recordlist",
        name: "版本记录",
        com: shallowRef(recordlist),
        status: "none",
        icon: require('@/assets/modelser/list.png'),
        activeIcon: require('@/assets/modelser/list_actived.png'),
        hoverIcon: require('@/assets/modelser/list_hover.png'),
    },
    {
        id: "monomerView",
        name: "单体化创建",
        com: shallowRef(monomerView),
        status: "none",
        icon: require('@/assets/modelser/monomer.png'),
        activeIcon: require('@/assets/modelser/monomer_actived.png'),
        hoverIcon: require('@/assets/modelser/monomer_hover.png'),
        isOnly: true,
    },
    {
        id: "monomerEdit",
        name: "单体化拾取",
        com: shallowRef(monomerEdit),
        status: "none",
        icon: require('@/assets/cimrts/baseInfo/edit.png'),
        activeIcon: require('@/assets/cimrts/baseInfo/edit_actived.png'),
        hoverIcon: require('@/assets/cimrts/baseInfo/edit_hover.png'),
    },
    {
        id: "location",
        name: "定位",
        status: "none",
        icon: require('@/assets/cimrts/baseInfo/location.png'),
        hoverIcon: require('@/assets/cimrts/baseInfo/location_hover.png'),
    },
    {
        id: "flyToFeature",
        name: "飞行至随机位置",
        status: "none",
        icon: require('@/assets/cimrts/baseInfo/flyToFeature.png'),
        hoverIcon: require('@/assets/cimrts/baseInfo/flyToFeature_hover.png'),
    },
    {
        id: "refresh",
        name: "刷新",
        status: "none",
        icon: require('@/assets/cimrts/baseInfo/refresh.png'),
        hoverIcon: require('@/assets/cimrts/baseInfo/refresh_hover.png'),
    },
])